<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div th:fragment="head(activeUri)">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <ul class="nav nav-tabs">
                    <li th:class="${activeUri=='use1'?'active':''}" class="active">
                        <a th:href="@{/main}"><button type="button" class="btn btn-success" onclick="changChick(this)">首页</button></a>
                    </li>


                    <li th:class="${activeUri=='use2'?'active':''}">
<!--              一类账户存入二类账户          -->
                        <a th:href="@{/deposit}"><button type="button" class="btn btn-success" onclick="changChick(this)">存入</button></a>
                    </li >
                    <li th:class="${activeUri=='use3'?'active':''}" class="disabled">
                        <a th:href="@{/transfer}"><button type="button" class="btn btn-success" onclick="changChick(this)">转账</button></a>
                    </li>

                    <li th:class="${activeUri=='use4'?'active':''}" class="disabled">
                        <a th:href="@{/detail}"><button type="button" class="btn btn-success" onclick="changChick(this)">交易明细</button></a>
                    </li>



                    <li class="dropdown pull-right">
                        <a href="#" data-toggle="dropdown" class="dropdown-toggle" ><strong class="caret"></strong></a>
                        <ul class="dropdown-menu">
                            <li>
                                <a th:href="@{/logOut}">注销</a>
                            </li>
                            <li>
                                <a href="#">分割线</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>

<script>
    function changChick(target){
        // $.each($(".changChick"), function() {
        //     $(this).removeClass("bg-light-blue");
        // });
        // $(target).addClass("bg-light-blue");
        alert("对对对");
        console.log("操作正确")
    }

</script>

</body>

</html>